<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSettingOptionsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('setting_options', function (Blueprint $table) {
            $table->increments('id')->comment('配置系统选项预设表');
            $table->string('title', 32)->comment('配置系统选项预设表')->default('');
	        $table->unsignedInteger('setting_id')->comment('对应的配置id')->default(0);
            $table->timestamps();
	        $table->index('setting_id');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('setting_options');
    }
}
